<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:72:"G:\wwwroot\vidio.test\public/../application/index\view\index\detail.html";i:1532177364;}*/ ?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人中心</title>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <link rel="stylesheet" href="/aui/css/aui.css">
    <script src="/assets/js/mlayer.js"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    
    <script>if(typeof window.wView !== "undefined"){ window.wView.allowsInlineMediaPlayback = "YES"; window.wView.mediaPlaybackRequiresUserAction = "NO";}</script>
    <style>
        .vid-wrap{
            width:100%;background: #000;
            position:relative;
            padding-bottom:56.25%;    /*需要用padding来维持16:9比例,也就是9除以16*/
            height: 0;
        }
        .vid-wrap video{
            position: absolute;
            top:0;
            left: 0;
            width: 100%;
            height: 100%
        }
        .rong{
            margin-top:1rem;
            background-color: #fff;
            padding:0.5rem 0.5rem;;
        }
        .video1{
            background-color: red;
            width:15rem;
            height: 1.5rem;
            position: absolute;
            bottom:0rem;
            right:0rem;
            z-index: 99999;
            opacity:0;
        }
        .playb{
            width:3rem;
            height: 1.5rem;
            position: absolute;
            z-index: 99999;
            margin:0 auto;
            top:4rem;
            left: 7.5rem;
        }

    </style>
</head> 
<body> 

        <?php if(!$ispay): ?>
        <!-- 提示 -->
        <!-- <section class="aui-content-padded">
            <div class="aui-card-list">
                <div class="aui-card-list-header">
                   <b> 提示: </b>
                </div>
                <div style="color:red;" class="aui-card-list-content-padded">
                    <?php echo $site['paytitle']; ?>
                </div>
                <div class="aui-card-list-footer">
                    <a href="javascript:gopay()">点击付费 [<?php echo $money; ?>元] </a>
                   
                </div>
            </div>
        </section> -->
        <div>
            <img src="/assets/img/buy.jpg" alt="">
        </div>
        <?php endif; ?>
        <!-- 标题 -->
        <div style="background-color: #4a4a4a;color:#fff;height:1.5rem;line-height: 1.5rem;margin-bottom: 0.2rem;">
          &nbsp;   <?php echo $data->v_title; ?>
        </div>

        <!-- 视频播放 -->
        <div class="vid-wrap" style="z-index: 999; position: relative;">
            <?php if(!$ispay): ?>
                <div style="z-index: 999; position: absolute;bottom:0rem"><a  style="color:red" href="javascript:gopay()">当前为试看视频,无法快进,全屏等操作,请付费后操作 </a></div>
                <div class="video1"></div>
            <?php endif; ?>
            <!-- 播放按鈕 -->
            <div onclick="bo()" class="playb"><img src="/play.png" alt=""></div>
            <video id="media"  <?php if($ispay): ?> controls    <?php endif; ?>  webkit-playsinline playsinline="true" webkit-playsinline="" playsinline="" >
                <source id="vv" src="<?php echo config('video_oss'); ?><?php echo $data->v_src; ?>" type="video/mp4">
            </video>,,
        </div>
        <?php if($ispay): else: ?>
        <div style="position: relative;">
            <img onclick="gopay()" style="height:2.5rem;width:100%" src="/assets/img/tobuy.jpg" alt="">
            <span style="position: absolute;top:0.3rem;right:1.5rem;color:#fff;font-size:1.2rem;"> <?php echo $money; ?>元</span>
        </div>
        <?php endif; ?>
        <!-- 播放按钮 -->
        <div class=" rong" style="">
            <div style="margin-bottom: 0.5rem;">
                <img style="width:0.8rem;display:inline-block" src="/aui/icon/sp.png" alt="">
                <span style="font-size:0.6rem;display:inline-block">视频线路 </span>
            </div>
            <div onclick="bo()" class="aui-btn aui-btn-danger">高速播放</div>
            <div onclick="qie()" class="aui-btn">绿色通道</div>
   
        </div>

        <section class="aui-content-padded">
            <div class="aui-card-list">
                <div class="aui-card-list-header">
                    情节简介:
                </div>
                <div class="aui-card-list-content-padded">
                  <?php echo $data->v_content; ?>
                </div>
                
            </div>
        </section>


        <center>
            <div style="margin-bottom: 5rem;width:92% " onclick='window.location.href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $site['myqq']; ?>&site=qq&menu=yes"' style="width:80%;margin:0 auto" class="aui-btn aui-btn-info aui-btn-block aui-btn-outlined aui-btn-sm">联系客服!</div>
        </center>

        <script>    

        function bo(params) {
                var Media = document.getElementById("media");
                Media.play(); //暂停
                $(".playb").remove()

                 <?php if(!$ispay): ?>

                setTimeout(function(){

                    var Media = document.getElementById("media");

                            Media.pause(); //暂停
                            gopay();

                },<?php echo $data['v_down_num']; ?>000)
            <?php endif; ?>


        }

            $("#ecode").attr('src','http://qr.liantu.com/api.php?text='+window.location.href+'%26daili=<?php echo session("dailiUid"); ?>&logo=http://cdn.xqmag.cn//uploads/20180704/f05a2e752150cfbcefb76bd8b7bc0fbd.png')
            
            var qie = ()=>{
                location = location;
                $("#vv").attr('src','<?php echo $data->v_src; ?>#1111');
            }
            
            var gopay = ()=>{
                layer.open({type: 2});
                
                      window.location.href='/index/index/wxpay?price=<?php echo $money; ?>&token=<?php echo $token; ?>&user=<?php echo $did; ?>&vid=<?php echo $_GET["id"]; ?>';
                    layer.closeAll();
            };
            $(".video1").on('click',function(){
                layer.open({
                    content: '试看用户无法进行此操作!'
                    ,skin: 'msg'
                    ,time: 2 //2秒后自动关闭
                });

            })


            // $.ajax('/index/index/jsToken.html',{
            //     data:{'url':window.location.href},
            //     type:'POST',
            //     success:(data)=>{
            //         console.log(data);
            //         wx.config({
            //             debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
            //             appId: data.appId, // 必填，公众号的唯一标识
            //             timestamp: data.timestamp, // 必填，生成签名的时间戳
            //             nonceStr: data.nonceStr, // 必填，生成签名的随机串
            //             signature: data.signature,// 必填，签名
            //             jsApiList: [] // 必填，需要使用的JS接口列表
            //         });

            //         wx.closeWindow();
            //     }
            // })
           
        </script>
        <div style="background-color:#504d4d;width:100%">
            <a href="/ts"><center style="padding:5px;color:#fff;height:1.8rem;line-height:1.5rem;font-size:0.8rem">
                          <img style="width:20px;margin-right:5px;display: inline-block;" src="http://139.129.19.66/nat123CacheFolder/66673336312E636E/61fa7c9a7b434ac58711c9f58d97c361CD30CE38D037D039DF31CD3ACA38C535CE_1401c473bc960353f92ef50c6ee15be6/assets/img/jb.png">投诉
             </center></a> 
         </div>
    
</body>


<script>

    var pic = setInterval(function(){
        var prc = document.getElementById("top_box");
        
    },100)
</script>